unit buttions;    //30x30 buttions

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  arr : array [0..29, 0..29] of TButton;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var i, j: integer;
begin
  for j:=0 to 29 do
  begin
    for i:=0 to 29 do
    begin
      arr[i, j] := TButton.Create(Form1);
      arr[i, j].Width := 10;
      arr[i, j].Height := 10;
      arr[i, j].Parent := Form1;
      arr[i, j].Top := 10*i;
      arr[i, j].Left := 10*j;
    end;
  end;
end;

end.
